package com.hqq.concurrency.semaphone;

/**
 * Fruit
 * <p>
 * Created by heqianqian on 2017/7/30.
 */
public class Fruit {

    private FruitType fruitType;

    public Fruit(FruitType fruitType) {
        this.fruitType = fruitType;
    }

    public FruitType getFruitType() {
        return fruitType;
    }

    @Override
    public String toString() {
        switch (fruitType) {
            case ORANGE:
                return "Orange";
            case APPLE:
                return "Apple";
            case BANANA:
                return "Banana";
            default:
                return "";
        }
    }
}
